<template>
	<view class="box">
		<web-view v-if="webUrl" :src="webUrl"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webUrl: ""
			}
		},
		onLoad(options) {
			this.webUrl = options.url;
		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	.box{
		padding-top: var(--status-bar-height); //给组件加个上边距
		box-sizing: border-box;
	}
</style>